<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
   <!-- 导入 layui 的样式 -->
   <link rel="stylesheet" href="../assets/lib/layui/css/layui.css">
   <!-- 导入自己的样式 -->
   <link rel="stylesheet" href="../assets/css/user-msg.css">
</head>
<body>
  <div class="layui-card">
    <div class="layui-card-header">修改密码</div>
    <div class="layui-card-body">
        <!-- 放form表单 -->
        <form class="layui-form layui-form-pwd"  lay-filter="formPwd">
            <div class="layui-form-item">
                <label class="layui-form-label">原密码</label>
                <div class="layui-input-block">
                    <!-- 添加input 隐藏域 -->
                    <input type="hidden" name="username">
                    <input type="password" name="oldPwd" required lay-verify="required|pass" placeholder="请输入原密码"
                        autocomplete="off" class="layui-input oldPwd">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">新密码</label>
                <div class="layui-input-block">
                    <input type="password" name="newPwd" required lay-verify="required|samePwd|rePwd" placeholder="请输入新密码"
                        autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">确认新密码</label>
                <div class="layui-input-block">
                    <input type="password" name="newPwd" required lay-verify="required|samePwd|rePwd" 
                    placeholder="请输入新密码"
                        autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">修改密码</button>
                    <button type="reset" class="layui-btn layui-btn-primary" id="btnBack">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
<!-- 引入js文件 -->
<script src="../assets/lib/jquery.js"></script>
<script src="../assets/js/ajax-prefilter.js"></script>
<script src="../assets/lib/layui/layui.all.js"></script>
<script src="../assets/js/user.pwd.js"></script>
</body>
</html>
